import mincheck from "@/common/min-check.js";
export default {
	//基本提示
	toast(title) {
		uni.showToast({title:title, icon:'none'})
	},
	//confirm类型
	confirm(title,content,yes,cancel) {
		uni.showModal({
		    title: title || '提示',
		    content: content || '确认?',
			confirmColor: '#F5AD00',
			cancelColor: '#999',
		    success: function (res) {
		        if (res.confirm) {
		            mincheck.isFunction(yes) && yes()
		        } else if (res.cancel) {
		            mincheck.isFunction(cancel) && cancel()
		        }
		    }
		});
	}
}